<!DOCTYPE html>
<html>

<include file="Public:header"/>


<body>


<form action="{:U('ivr/complaint_')}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
    <input id="cpfile" type="file" name="cpfile" style="display:none">
    <div class="input-append">
        <input id="photoCover"  class="input-large" type="text" style="height:30px;">
        <a class="btn btn-default" onclick="$('input[id=cpfile]').click();">文件</a>
        <input type="submit" value="上传" class="btn btn-default" >
    </div>


</form>

<form action="{:U('ivr/complaint_stat')}" method="post">
    开始:<input class="datepicker-start" type="text" name="pdate_start" value="{$pdate_start}"/>
    结束:<input class="datepicker-start" type="text" name="pdate_end" value="{$pdate_end}"/><br/>
    <select name="tag">
        <foreach name="tags" item="vo" key="i">
            <eq name="i" value="$tag">
                <option value="{$i}"  selected>{$vo}</option>
                <else/>
                <option value="{$i}"  >{$vo}</option>
            </eq>

        </foreach>


    </select>
    <input type="submit" value="统计" class="btn btn-default">


</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>

    <tr>

        <th>渠道</th>

        <th>数量</th>


    </tr>
    </thead>
    <tbody>

    <foreach name="data" item="vo">
        <tr  data-toggle="modal" data-target="#{$vo.channel}">

            <!--&lt;!&ndash; 模态框（Modal） &ndash;&gt;-->
            <!--<div class="modal fade" id="{$vo.channel}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">-->
                <!--<div class="modal-dialog">-->
                    <!--<div class="modal-content">-->
                        <!--<div class="modal-header">-->
                            <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>-->
                            <!--<h4 class="modal-title" id="myModalLabel">{$vo.channel}</h4>-->
                        <!--</div>-->
                        <!--<div class="modal-body">-->

                            <!--<foreach name="vo.info" item="i">-->
                                <!--<p>{$i.dcprivence}:  {$i.count}</p>-->
                            <!--</foreach>-->
                        <!--</div>-->
                        <!--<div class="modal-footer">-->
                            <!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>-->

                        <!--</div>-->
                    <!--</div>&lt;!&ndash; /.modal-content &ndash;&gt;-->
                <!--</div>&lt;!&ndash; /.modal &ndash;&gt;-->
            <!--</div>-->
            <td>{$vo.channel}</td>


            <td>{$vo.total_count}</td>
            <td>
                <foreach name="vo.info" item="i">
                <p>{$i.dcprivence}:  {$i.count}</p>
                </foreach>
            </td>


        </tr>


    </foreach>

    </div>
    </tbody>
</table>

<script type="text/javascript">
    $('input[id=cpfile]').change(function() {
         $('#photoCover').val($(this).val());

    });
    $(function () {

        $(".datepicker-start").datepicker({
            dateFormat: 'yy-mm-dd',
            showButtonPanel: true,

        });

    })
</script>

</body>

</html>